#!/usr/bin/env python
#-*-coding:utf-8-*-
# ---------------------------------
# version:  1.0
#
# create-time:      <2008/12/03 01:27:35>
# last-update-time: <halida 12/20/2008 11:56:22>
# ---------------------------------
# module : lib

import sys,os,time
import uuid


def id():
    return uuid.uuid4().hex

#logging
import logging

logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s %(levelname)s %(message)s',
                    #filename='/tmp/myapp.log',
                    #filemode='w'
                    )
logging.info('init logging..')
